package com.linjiahao.eduservice.client;

import com.linjiahao.commonutils.ResultMap;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-vod",fallback = vodFallback.class)
@Component
public interface VodClient {

    @DeleteMapping("/vod/video/{videoId}")
    public ResultMap removeVideo(@ApiParam(name = "videoId", value = "云端视频id", required = true)
                                 @PathVariable String videoId);

    @DeleteMapping(value = "/vod/video/delete-batch")
    public ResultMap removeVideoList(@RequestParam("videoIdList") List<String> videoIdList);
}
